<?php
namespace Common\Model;
// +----------------------------------------------------------------------
// | TAODUDU.COM  [ Simple Efficient Excellent ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016 http://www.taodudu.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: ubten <462193409@qq.com> http://www.ubten.com/
// +----------------------------------------------------------------------
use Think\Model\RelationModel;

class PMansongModel extends RelationModel {
    //put your code here
    
    protected $_link = array(
        'pMansong' => array(
            'mapping_type' => self::HAS_MANY,
            'class_name' => 'pMansongRule',
            'foreign_key' => 'mansong_id',
            'parent_key' => 'mansong_id',
        )
    );
    
    
}